package com.changy.ai_tutor_for_dm.context;

// 用户信息上下文工具类
public class UserContext {
    private static final ThreadLocal<String> cardIdHolder = new ThreadLocal<>();
    
    public static void setCardId(String cardId) {
        cardIdHolder.set(cardId);
    }
    
    public static String getCardId() {
        return cardIdHolder.get();
    }

    public static void clearHolder() {
        cardIdHolder.remove();
    }
}
